package common;

import java.io.File;
import java.util.List;

/**
 * @author lizi
 * @date 2020/4/11-23:03
 */
public class CommonUtil {
    public static void listFilesForFolder(final File folder, List<String> fileList){
        for (final File fileEntry:folder.listFiles()){
            if (fileEntry.isDirectory()){
                listFilesForFolder(fileEntry,fileList);
            }else{
                fileList.add(fileEntry.getAbsolutePath());
            }
        }
    }
}
